package SSM.Chat.Domain;

// 设置前端返回格式
// 生成有参构造函数，一定要多带一个无参构造函数
public class Result {

    private Integer Code;
    private  String Message;
    private Object Data;


    @Override
    public String toString() {
        return "Result{" +
                "Code=" + Code +
                ", Message='" + Message + '\'' +
                ", Data=" + Data +
                '}';
    }

    public Result(Integer code, String message, Object data) {
        Code = code;
        Message = message;
        Data = data;
    }
    public Result(Integer code, String message) {
        Code = code;
        Message = message;
    }
    public Result() {
    }

    public Integer getCode() {
        return Code;
    }

    public void setCode(Integer code) {
        Code = code;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public Object getData() {
        return Data;
    }

    public void setData(Object data) {
        Data = data;
    }
}
